package online.foxnull2.foxmall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import online.foxnull2.common.to.mq.OrderTo;
import online.foxnull2.common.to.mq.SeckillOrderTo;
import online.foxnull2.foxmall.order.utils.PageUtils;
import online.foxnull2.foxmall.order.entity.OrderEntity;
import online.foxnull2.foxmall.order.vo.orderConfirm.OrderConfirmVo;
import online.foxnull2.foxmall.order.vo.orderSubmitResp.OrderSubmitRespVo;
import online.foxnull2.foxmall.order.vo.orderSubmitResp.OrderSubmitVo;

import java.util.Map;

/**
 * 订单
 *
 * @author foxnull2
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo confirmOrder();

    OrderSubmitRespVo orderSubmit(OrderSubmitVo orderSubmitVo);

    OrderEntity getOrderByOrderSn(String orderSn);

    void orderReleaseHandle(OrderTo orderTo);

    String pay(String orderSn);

    PageUtils listWithItem(Map<String, Object> params);

    void orderSeckillHandle(SeckillOrderTo seckillOrderTo);
}

